Skip to content

JclIDEUtils: fix AnyInstanceRunning not detecting 64-bit IDE#173

Open
Delphier wants to merge 1 commit intoproject-jedi:masterfrom
Delphier:AnyInstanceRunning-fix-64bit-ide
Open

JclIDEUtils: fix AnyInstanceRunning not detecting 64-bit IDE#173
Delphier wants to merge 1 commit intoproject-jedi:masterfrom
Delphier:AnyInstanceRunning-fix-64bit-ide

Conversation

@Delphier
Copy link
Contributor

No description provided.

FKnownPackages32.Objects[I] := Pointer(True);

if Installation.IDEVersionNumber >= 23 then
if FileExists(Installation.IdeExeFileName[True]) then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The x64 IDE could be unselected during installation but registry entries be there, so I believe this test should not be changed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 64-bit IDE was introduced in version 12.3, but the test IDEVersionNumber >= 23 covers the entire version 12 series, so this test is inaccurate.
Checking whether the file bin64\bds.exe exists works correctly regardless of whether the 64-bit IDE is installed or whether the registry key value exists.

property IdeTools: TJclBorRADToolIdeTool read FIdeTools;
property IdeExeBuildNumber: string read GetIdeExeBuildNumber;
property IdeExeFileName: string read GetIdeExeFileName;
property IdeExeBuildNumber[x64: Boolean]: string read GetIdeExeBuildNumber;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that the Exe file will be different depending on the platform, but I don't expect the version info inside it to be different.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A large number of properties and methods related to the 64-bit IDE in JclIDEUtils use the parameter form x64: Boolean, which can maintain consistency. The getter of this property also simply retrieves the file version information of IdeExeFileName[x64: Boolean].
Additionally, some of Embarcadero's newer features now only support the 64-bit IDE, and it is entirely possible that the 32-bit IDE will be deprecated or made an optional installation in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants